package com.huidu.bitrade.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.huidu.bitrade.dto.AcGroupChargeQuery;
import com.huidu.bitrade.dto.AcMemberChargeQuery;
import com.huidu.bitrade.entity.AcGroupChargeAward;
import com.huidu.bitrade.vo.AcChargeAwardRecordVo;
import com.huidu.bitrade.vo.AcGroupChargeAwardVo;
import com.huidu.bitrade.vo.MemberHdcChargeVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AcGroupChargeAwardMapper extends BaseMapper<AcGroupChargeAward> {

    /**
     * 查询每个用户每天完成交易订单手续费
     */
    List<MemberHdcChargeVo> getMemberChargeList(@Param("startTime") String startTime, @Param("endTime") String endTime);

    /**
     * 获取手续费奖励记录
     * @param acMemberQuery
     * @return
     */
    List<AcChargeAwardRecordVo> getChargeAwardRecord(IPage page, @Param("param") AcMemberChargeQuery param);

    List<AcGroupChargeAwardVo> getGroupChargeAward(IPage page, @Param("param") AcGroupChargeQuery param);
}
